import request from '@/utils/request'

//轮播图数据接口
export interface navListModel{
    picUrl:string,
    id:number,
    mainTitle:string,
    viceTitle:string,
    [propname:string]:any
}
//瀑布流数据接口
export interface lookListModel{
    avatar:string,
    nickname:string,
    picUrl:string,
    title:string,
    topicId:number,
    [propnames:string]:any
}

//轮播图
export const getworthBuyingList=()=>{
    return request.get('topic/v1/know/navWap.json')
}

//瀑布流
export const getlookList=(page:number,size:number)=>{
    return request.get<any,any>(`topic/v1/find/recAuto.json?page=${page}&size=${size}`)
}